import API_PREFIX from './config'
import Mock from 'mockjs'

export default [
  // 获取滚动列表
  {
    url: `${API_PREFIX}/news/getListData`,
    method: 'get',
    response: () => {
      return {
        dict: null,
        errcode: 0,
        errmsg: '操作成功',
        otherData: null,
        result: {
          'content|10': [
            {
              id: '@string(3,10)',
            },
          ],
          totalElements: 71, // 总共71条，用来判断分页是否结束
        },
        sessionid: null,
        sysErrMsg: null,
      }
    },
  },
  // 表单提交（我的举报）
  {
    url: `${API_PREFIX}/jwjg/supervise/saveSupervise`,
    method: 'post',
    response: () => {
      return {
        dict: null,
        errcode: 0,
        errmsg: '操作成功',
        otherData: null,
        result: 'ok',
      }
    },
  },
]
